<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // const func = () => {
    //   console.log(arguments);
    // }

    function func (name, ...rest) {
      /* rest：真数组 */
      /* arguments：伪数组 */
      // console.log([...arguments], name, age);
      console.log(name, rest);
    }
    func('jack', 18, '男')
  </script>

</body>

</html>